package myJs.myPkg

import org.scalajs.dom.{Blob, Element}
import slinky.readwrite.ObjectOrWritten

import scala.scalajs.js
import scala.scalajs.js.annotation.JSImport
/**
 * Created by yz on 2019/3/14
 */
@JSImport("dom-to-image", JSImport.Default)
@js.native
object DomToImage extends js.Object {

  def toPng(node: Element): js.Promise[String] = js.native

}
